<{include file="Public/top.html" }>
</head>
<body>
<div id="warpper">
    <div class="content">
        <div class="location">商户管理</div>
        <{include file="Restaurant/nav.html"}>
        <div class="filedSet" style="padding-bottom: 0;">
            <div class="search">
                <form action="" id="searchForm" class="ui-form reportForm">
                    <input name="m" type="hidden" value="<{$module}>">
                    <input name="c" type="hidden" value="<{$controller}>">
                    <input name="a" type="hidden" value="<{$action}>">

                    <input name="p" id="page" type="hidden" value="<{$page|default:1}>">
                    <input name="limit" id="limit" type="hidden" value="<{$limit|default:10}>">
                    <input name="ofield" id="ofield" type="hidden" value="<{$ofield}>">
                    <input name="otype"  id="otype"  type="hidden" value="<{$otype}>">


                    <div class="ui-form-item inline-block">
                        <label class="ui-label">手机</label>
                        <input type="text" name="phone" value="<{$phone}>" class="ui-text bg-text keyword"  />
                    </div>

                    <div class="ui-form-item inline-block">
                        <label class="ui-label">姓名</label>
                        <input type="text" name="name" value="<{$name}>" class="ui-text bg-text keyword"  />
                    </div>

                    <div class="ui-form-item inline-block">
                        <button type="submit" class="ui-button" onclick="LayerShow();">查询</button>
                    </div>
                </form>
            </div>
        </div>
        <!--表格内容-->
        <div class="mainGrid">
            <table class="ui-table ui-body">
                <thead>
                    <tr>
                        <th class="pct20">商户名</th>
                        <th class="pct20">门店名</th>
                        <th class="pct10">核销员</th>
                        <th class="pct10">核销工号</th>
                        <th class="pct10">手机号</th>
                        <th class="pct10">核销数量</th>
                        <th class="pct20 last-col">操作</th>
                    </tr>
                </thead>
                <tbody>

                <{foreach from = $list item=item}>
                    <tr>
                        <td><{$item.restaurantName}></td>
                        <td><{$item.storeName}></td>
                        <td><{$item.verificationName}></td>
                        <td><{$item.jobNum}></td>
                        <td><{$item.phone}></td>
                        <td><{$item.verifyNum}></td>
                        <td class="ta_l">
                            <div class="handler">
                                <a href="<{u('verificationEdit/?id='|cat:$item['id'])}>" onclick="LayerShow();">修改信息</a>
                                <span class="sep">|</span>

                                <a href="<{u('verificationLog/?id='|cat:$item['id'])}>" onclick="LayerShow();">核销记录</a>
                                <span class="sep">|</span>

                                <{if $item.status == $smarty.const.ENABLE_START}>
                                    <a href="<{u('verificationUpdate/?id='|cat:$item['id'])}>" onclick="if(!confirm('确定不启用该核销员么？'))return false;">已启用</a>
                                <{else}>
                                    <a href="<{u('verificationUpdate/?id='|cat:$item['id'])}>" onclick="if(!confirm('确定不启用该核销员么？'))return false;">未启用</a>
                                <{/if}>
                            </div>
                        </td>
                    </tr>
                <{/foreach}>
                </tbody>
            </table>
        </div>
        <!--描述：分页-->
        <div class="pagination">
            <{include file ="Public/page.html"}>
        </div>
    </div>
</div>
</body>
<{include file="Public/foot.html" }>